import requests
import json
url = 'https://piaofang.maoyan.com/dashboard-ajax?orderType=0&uuid=1954aa97859c8-0b1189a1490c4-26011a51-1fa400-1954aa97859c8&timeStamp=1740714398013&User-Agent=TW96aWxsYS81LjAgKFdpbmRvd3MgTlQgMTAuMDsgV2luNjQ7IHg2NCkgQXBwbGVXZWJLaXQvNTM3LjM2IChLSFRNTCwgbGlrZSBHZWNrbykgQ2hyb21lLzEzMy4wLjAuMCBTYWZhcmkvNTM3LjM2&index=792&channelId=40009&sVersion=2&signKey=337151ca7bdd447a3ee76cb96cc277d0&WuKongReady=h5'
parame = {
    'bookId':'1330759'
}
response = requests.get(url=url,params=parame)
print(response.json())
with open('maoyan.json','w',encoding='utf-8')as file:
    file.write(json.dumps(response.json(),ensure_ascii=False))
